<template>
  <el-affix :offset="0" style="">
    <div style="height: 150%;background: grey">
      <el-col style="width: 100%;height: 150%;background: grey">
        <el-header class="el-header1">公司个人空间</el-header>
        <el-menu
          router
          mode="vertical"
          default-active="this.$route.path"
          class="el-menu-vertical-demo"
          uniqueOpened="true"
          @open="handleOpen"
          @close="handleClose"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          style="font-family: 'Roboto',sans-serif"
        >

          <el-menu-item index="comp">
            <i class="el-icon-s-promotion"></i>
            <template #title>公司信息</template>
          </el-menu-item>

          <el-menu-item index="job_infor">
            <i class="el-icon-s-promotion"></i>
            <template #title>招聘信息</template>
          </el-menu-item>





        </el-menu>
      </el-col>
    </div>
  </el-affix>

</template>

<script>


export default {
  name: 'Sidebar',

  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style >

.el-header1{
  text-align: center;
  line-height: 400%;
  background: #545c64;
  font-size: 20px;
  color: white;
}
.el-menu-item:hover{
  background: #787878!important;

}

.el-menu-vertical-demo{
  height: 150%;
  width: 100%;

}
</style>
